//
//  CPDebugTools.m
//  CPSecurityTools
//
//  Created by collegepre on 2019/11/15.
//  Copyright © 2019 collegepre. All rights reserved.
//

#import "CPDebugTools.h"

@implementation CPDebugTools
+(NSString *)cp_getBaseURL{
    NSString *URL = [self getValueForKey:@"BaseURLPrefix"];
    if (URL != nil && ![URL isEqualToString:@""]) {
        return URL;
    }else{
        return @"https://api.collegepre.com/";
    }
    
}

+(NSString *)cp_getTentenID{
    NSString *URL = [self getValueForKey:@"TentenID"];
       if (URL!= nil && ![URL isEqualToString:@""]) {
           return URL;
       }else{
           return @"CD5E551C07FB4ED8AF56E2E5E8E2A1D1";
       }
}

+ (NSString *)getValueForKey:(NSString *)key
{
    NSUserDefaults *UserDef = [NSUserDefaults standardUserDefaults];
   return [UserDef objectForKey:key];

}
@end
